package o2o.config.redis;

/**
 * @author :ld
 * @description :RedisKeyConstant
 * @date :2021/5/31
 */
public class RedisKeyConstant {
    /**
     * 通用key过期时间30分钟
     */
    public static final Integer EXPIRED_TIME = 1800;

    /**
     * ==============CityPostmanMemory==================
     */
    public static final String CITY_POSTMAN_LIST_PREFIX = "city_postman:man_list";
    public static final String CITY_POSTMAN_PREFIX = "city_postman:man";

    /**
     * ==============UserWalletMemory==================
     */
    public static final String USER_WALLET_PREFIX = "user_wallet:map";

    /**
     * ==============OrderPayMemory==================
     */
        public static final String ORDER_PAY_PREFIX = "order_pay:map";
        public static final String ORDER_PAY_SHOP_PREFIX = "order_pay:shopMap";

    /**
     * ==============OrderStatusMemory==================
     */
    public static final String ORDER_STATUS_PREFIX = "order_status:map";

    /**
     * ==============CityMemory==================
     */
    public static final String CITY_PREFIX = "city:cityList";

    /**
     * SysConfigDepositMemory
     * 根据id缓存<id,info>
     * Long, SysConfigDeposit
     */
    public static final String SYS_CONFIG_DEPOSIT_MAP_PREFIX = "sys_config_deposit:map";

    /**
     * SysConfigDepositMemory
     * 根据类型缓存<type,info>
     * Integer(type), Long(id)
     */
    public static final String SYS_CONFIG_DEPOSIT_TYPE_MAP_PREFIX = "sys_config_deposit:typeMap";

    /**
     * PostmanGrabMemory
     * 无对应实体
     * 以订单编号为key,以抢单信息为value
     * 对应 map
     */
    public static final String POSTMAN_GRAB_MEMORY_ORDER_NO = "PostmanGrabMemory:OrderNo";

    /**
     * PostmanGrabMemory
     * 无对应实体
     * 以配送员姓名为key，以抢单信息为value
     * 对应postmanMap
     */
    public static final String POSTMAN_GRAB_MEMORY_POSTMAN_NAME = "PostmanGrabMemory:PostmanName";

    /**
     * PostmanGrabMemory
     * 无对应实体
     * 以订单号为key，配送员姓名为value
     * 对应orderGrabMap
     */
    public static final String POSTMAN_GRAB_MEMORY_ORDER_NO_POSTMAN_NAME = "PostmanGrabMemory:OrderNoPostmanName";

    /**
     * ShopMemory
     * 对应表 shop_info
     * 键名   ownUsername
     * 值    ShopInfo
     */
    public static final String SHOP_MEMORY_USER_NAME_SHOP_INFO = "shop_info:ownUserName";
    public static final String SHOP_MEMORY_SHOP_ID_SHOP_INFO = "shop_info:shopId";

    /**
     * ==============UserInfoMemory==================
     */
    public static final String USER_INFO_USER_NAME = "user_info:username";
    public static final String USER_INFO_PHONE = "user_info:phone";
    public static final String USER_INFO_WX_OPEN_ID = "user_info:wxOpenId";
    public static final String USER_INFO_WX_XCX_OPEN_ID = "user_info:wxXcxOpenId";
    public static final String USER_INFO_WX_GZH_OPEN_ID = "user_info:wxGzhOpenId";
    public static final String USER_INFO_ALL = "user_info:allUserInfos";
    public static final String USER_INFO_USER_TYPE = "user_info:userType";


    /**
     * ==============OrderInfoMemory==================
     */
    public static final String ORDER_INFO_ORDER_NO = "order_info:orderNo";
    public static final String ORDER_INFO_USER_NAME = "order_info:username";
    public static final String ORDER_INFO_SHOP_ID = "order_info:shopId";
    public static final String ORDER_INFO_POSTMAN_USER_NAME = "order_info:postmanUsername";
    public static final String ORDER_INFO_SECOND_POSTMAN_USER_NAME = "order_info:secondPostmanUsername";
    public static final String ORDER_INFO_PAY_ORDER_NO = "order_info:payOrderNo";
    public static final String ORDER_INFO_ALL = "order_info:allOrderInfos";
    public static final String ORDER_INFO_PARENT_ORDER_NO = "order_info:parentOrderNo";
    public static final String ORDER_INFO_ORDER_STATUS_PARENT_ORDER_NO = "order_info:orderStatus";
    public static final String ORDER_INFO_CITY_UN_DELIVERY = "order_info:cityUnDelivery:shopCity";
    public static final String ORDER_INFO_ALL_CITY_UN_DELIVERY = "order_info:allCityUnDelivery:shopCity";
    public static final String ORDER_INFO_CITY_UN_SECONDARY_DELIVERY = "order_info:cityUnSecondaryDelivery:shopCity";
    public static final String ORDER_INFO_CITY_CANT_FINISH = "order_info:cityCantFinish:shopCity";
    public static final String ORDER_INFO_VERIFY_CODE = "order_info:verifyCode";
    public static final String ORDER_INFO_CITY_NO_SHOP_SURE = "order_info:cityNoShopOrder:city";
    public static final String ORDER_INFO_ALL_CITY_NO_SHOP_SURE = "order_info:allCityNoShopOrder:city";
    public static final String ORDER_INFO_CITY_NO_SHOP_SURE_AGENT = "order_info:cityNoShopSureAgent:agentId";
    public static final String ORDER_INFO_ALL_CITY_NO_SHOP_SURE_AGENT = "order_info:allCityNoShopSureAgent:agentId";
    public static final String ORDER_INFO_CITY_SHOP_NOT_SURE = "order_info:cityShopNotSure:shopCity";
    public static final String ORDER_INFO_SHOP_NOT_SURE = "order_info:shopNotSure:shopId";
    public static final String ORDER_INFO_AGENT_UN_SECONDARY_DELIVERY = "order_info:agentUnSecondaryDelivery:agentId";
    public static final String ORDER_INFO_AGENT_UN_DELIVERY = "order_info:agentUnDelivery:agentId";
    public static final String ORDER_INFO_AGENTING = "order_info:agentIng:agentId";
    public static final String ORDER_INFO_ALL_AGENTING = "order_info:allAgentIng:agentId";

    /**
     * ==============OrderShopSpecsMemory==================
     */
    public static final String ORDER_SHOP_SPECS_ID = "order_shop_specs:id";
    public static final String ORDER_SHOP_SPECS_ORDERNO = "order_shop_specs:orderNo";

    /**
     * ==============OrderGoodsMemory==================
     */
    public static final String ORDER_GOODS_ORDERNO = "order_goods:orderNo";
    public static final String ORDER_GOODS_GOODS_ID = "order_shop_specs:goodsId";

    public static final String DADA_CITY_NAME_CODE = "Dada_city_name_code";

}
